﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeetingGrid.aspx.cs" Inherits="FantastPlatform.Decision.UI.MeetingGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var mg = new FantastPlatform.UI.MeetingGrid({
            renderTo: 'mg_div',
            url: '../Service/MeetingViewService.aspx?Action=Search',
            width: tabs.getInnerWidth() - 5,
            height: tabs.getInnerHeight() - 5,
            border: false,
            tbar: [{
                text: '新会议',
                iconCls: 'add',
                tooltip: {
                    text: '新会议',
                    autoHide: true
                },
                handler: function () { mg.onAddMeetingClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的会议',
                    autoHide: true
                },
                handler: function () { mg.onEditMeetingClick(); }
            }, 
//            '-', {
//                text: '查询',
//                iconCls: 'search',
//                tooltip: {
//                    text: '按照条件查询通知',
//                    title: '查询通知',
//                    autoHide: true
//                },
//                handler: function () { mg.onSearchClick(); }
//            },
             '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的会议',
                    title: '删除选中的会议',
                    autoHide: true
                },
                handler: function () { mg.onDeleteClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '更新',
                    title: '重新更新列表内容',
                    autoHide: true
                },
                handler: function () { mg.onUpdataClick(); }
            }]
        });
        mg.addListener('rowdblclick', function () { mg.onEditMeetingClick(); });
        mg.onUpdataClick();
    </script>
</head>
<body>
    <div id="mg_div">
    </div>
</body>
</html>
